package ma.sqli.vehicles;


import java.util.Map;

/************
 * The aim of the exercise is to pass all the test cases bellow. It's about
 * vehicles and their consumption. Each vehicle has a different consumption
 * according to its Fuel type : - Diesel: 5% - Gasoline: 6% - Hybrid: 3%
 * 
 * A vehicle is displayed as bellow. Please respect the door's numbers as in the
 * schema : _ door 1 | | door 2 door 3 |_| door 4
 *************/

public class Vehicles {
	
	private static final String name = "elaissoussi";
	
	public   Map<String, Vehicle> vehicles;

	public Vehicles(String concatenetedVehicles) {

		vehicles = VehicleFactory.getVehicles(concatenetedVehicles); 
		
	}

	public String move(String idVehicle, String closedDoors, String distance) {
		Vehicle vehicle = vehicles.get(idVehicle);
		return vehicle.getVehicleReport(closedDoors, distance);
	}

}
